<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
<head>
 	<%@ include file="/core/memberMeta.jsp"%>
 	<script type="text/javascript"> 
 		jQuery(function($){ 
 			$("#idAll").click(function(){ 
	 			 
				$("input[name='ids']").each(function(){ 
					if($(this).attr("checked")) 
					{ 
						$(this).removeAttr("checked"); 
					} 
					else 
					{ 
						$(this).attr("checked","true"); 
					} 
				}) 
			}) 
 		})
 		
 	</script>
	<script type="text/javascript"> 
		var checkSubmitFlg = false; 
		
		
		function checkSubmit() {  
			 
			
			 
			if ($("#twoPassword").val() == "") {
				alert("请输入安全密码。");
			 
				return false;
			}
			
			if (checkSubmitFlg == true) {   
				return false;   
			}   
			checkSubmitFlg = true;   
			return true;   
		}   
		document.ondblclick = function docondblclick() {   
			window.event.returnValue = false;   
		}   
		document.onclick = function doconclick() {   
			if (checkSubmitFlg) {   
				window.event.returnValue = false;   
			}   
		}   
	</script>
	<script type="text/javascript">
		 
		
		function loginNameChange(){
			
			var loginName=$("#loginName").val(); 	
			 
			$.getJSON("<%=basePath%>/member/wealth/ajaxGetPersonByloginName.shtml",{loginName: loginName},function(result){	 
			 
				//填入新值
				if(result.success==true){
					
					$("#loginNamePersonName").html("会员编号正确，会员姓名:"+result.personName);
				}else{
					 
					$("#loginNamePersonName").html("<b  style='color: #ffff00;'>会员编号不正确，会员不存在</b>");
				} 
				
				 
			});
			 
			
		}
	</script>
</head>

<body data-type="widgets">
    <script src="<%=basePath%>/resources/memberCss/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <div class="page-header-heading"><span class="am-icon-key page-header-heading-icon"></span> 激活矿点</div>
                        <p class="page-header-description">欢迎光临BHP必和必拓矿业投资中国区</p>
                    </div>
                     
                </div>

            </div>

            <div class="row-content am-cf">
<form class="am-form tpl-form-border-form tpl-form-border-br" action="<%=basePath%>/member/kuang/kuangActive.shtml" method="post" onsubmit="return checkSubmit();" >
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">激活矿点</div>
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body am-fr">

                            
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">我的未激活矿点：</label>
                                    <label for="user-name" class=" am-form-label" style="text-align: left;">
                                       &nbsp;&nbsp;&nbsp;${num}
                                    </label>
                                </div>
                                
                              
                              
							 
		                        <div class="am-form-group">
		                        	<label for="user-email" class="am-u-sm-3 am-form-label">安全密码： </label>
		                        	<div class="am-u-sm-9">
		                            	<input type="password"  id="twoPassword" name="twoPassword" class="tpl-form-input"/>
		                            </div>
		                        </div>
		                        <div class="am-form-group" >
		                        	<div class="am-u-sm-9" style="text-align: center;color: #ffff00;">
		                        		${retMsg}
		                        	</div>
		                        </div>

                                 
                                 <div class="am-form-group">
                                     <div class="am-u-sm-9 am-u-sm-push-3">
                                         <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                     </div>
                                 </div>
                             
                         </div>
                     </div>
                 </div>
            

                   <div class="am-u-sm-12 am-u-md-12 am-u-lg-12 widget-margin-bottom-lg" >

                       <div class="widget am-cf widget-body-lg ">

                           <div class="widget-body  am-fr">
                               <div class="am-scrollable-horizontal ">
                               <form name="showTable" method="post" action="<%=basePath%>/member/kuang/logKuangNoActiveList.shtml">
                                   <table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black "  id="example-r">
                                       <thead>
                                           <tr>                                    
			                                <th style="text-align: center;"><input type="checkbox" name="idAll" id="idAll"  style="width:20px;"/>全选</th>                              
		                                    <th style="text-align: center;">矿点编号</th>
											
											 
											<th style="text-align: center;">购买时间</th>
											            
			                            </tr>
                                       </thead>
                                       <tbody>
                                         <c:forEach items="${logKuangNoActiveList}"  var="o" >
										<tr  style="text-align: center;">
				
											
											 
											<td style="text-align: center;">
												 <input type="checkbox" name="ids" value="${o.id}" style="width:20px;"/>
											</td> 
											<td style="text-align: center;">${o.kuangCodeNo}</td>
											 
											 
											<td style="text-align: center;">
												<fmt:formatDate value="${o.buyDate}" type="date" pattern="yyyy-MM-dd HH:mm:ss" />
											</td>
											 
											
										</tr>
									</c:forEach> 
                                           <!-- more data -->
                                       </tbody>
                                   </table>
                                  
                               </form>
                               </div>
                           </div>
                       </div>

                   </div>
          </form>
               </div>
        </div>
    </div>
    </div>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui2.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui.datatables.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/dataTables.responsive.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/app.js"></script>

</body>


